#ifndef LOGGERWRAPPER_H
#define LOGGERWRAPPER_H

#include <log4qt/logger.h>

class LoggerWrapper
{
public:
    static LoggerWrapper& instance() {
        static LoggerWrapper instance;
        return instance;
    }

    Log4Qt::Logger* getLogger() {
        // 返回根Logger的实例
        return Log4Qt::Logger::rootLogger();
    }

private:
    LoggerWrapper() {} // 禁止外部直接创建实例
    LoggerWrapper(const LoggerWrapper&) = delete; // 禁止拷贝构造
    LoggerWrapper& operator=(const LoggerWrapper&) = delete; // 禁止赋值
};

#endif // LOGGERWRAPPER_H
